﻿@{
    Layout = null;
}

<div class="bjui-pageContent">
    @if (ViewBag.Modellist != null)
    {
        int i = 1;
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading"><h3 class="panel-title">C# <a href="Wiki/List" data-toggle="navtab" data-id="WikiList" data-title="文章列表">[更多]</a></h3></div>
                <div class="panel-body bjui-doc">
                    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">
                        <thead>
                            <tr>
                                <th align="center">标题</th>
                                <th align="center" width="150">作者</th>
                                <th align="center" width="250">上传时间</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach (var item in ViewBag.Modellist)
                            {
                            <tr data-id="@i">
                                <td align="left"><a href="Wiki/Article/@item.Id" data-toggle="navtab" data-id="WikiArticle_@item.Id" data-title="@item.Article_name">@item.Article_name</a></td>
                                <td align="center">@item.User_name</td>
                                <td align="right">@item.Createtime.ToString("yyyy-MM-dd HH:mm")</td>
                            </tr>
                            i++;
                            }


                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    }
    @if (ViewBag.Modellist2 != null)
    {
        int i = 1;
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading"><h3 class="panel-title">C <a href="Wiki/List" data-toggle="navtab" data-id="WikiList" data-title="文章列表">[更多]</a></h3></div>
                <div class="panel-body bjui-doc">
                    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">
                        <thead>
                            <tr>
                                <th align="center">标题</th>
                                <th align="center" width="150">作者</th>
                                <th align="center" width="250">上传时间</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach (var item in ViewBag.Modellist2)
                            {
                            <tr data-id="@i">
                                <td align="left"><a href="Wiki/Article/@item.Id" data-toggle="navtab" data-id="WikiArticle_@item.Id" data-title="@item.Article_name">@item.Article_name</a></td>
                                <td align="center">@item.User_name</td>
                                <td align="right">@item.Createtime.ToString("yyyy-MM-dd HH:mm")</td>
                            </tr>
                                i++;
                            }


                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    }
    @if (ViewBag.Modellist3 != null)
    {
        if (ViewBag.Modellist3.Count > 0)
        {
            int i = 1;
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading"><h3 class="panel-title">Net Core <a href="Wiki/List" data-toggle="navtab" data-id="WikiList" data-title="文章列表">[更多]</a></h3></div>
                    <div class="panel-body bjui-doc">
                        <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">
                            <thead>
                                <tr>
                                    <th align="center">标题</th>
                                    <th align="center" width="150">作者</th>
                                    <th align="center" width="250">上传时间</th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach (var item in ViewBag.Modellist3)
                                {
                                    <tr data-id="@i">
                                        <td align="left"><a href="Wiki/Article/@item.Id" data-toggle="navtab" data-id="WikiArticle_@item.Id" data-title="@item.Article_name">@item.Article_name</a></td>
                                        <td align="center">@item.User_name</td>
                                        <td align="right">@item.Createtime.ToString("yyyy-MM-dd HH:mm")</td>
                                    </tr>
                                    i++;
                                }
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        }
    }
</div>
